<h1>添加课程</h1>

<% form_for :course, :url => {:action => 'create' } do |f| %>
  <%= f.error_messages %>
  <p>名称: <%= f.text_field :name %> 
  <p>
    <%= f.submit '确定' %>
  </p>
<% end %>
<%= link_to '返回', :action => 'index' %>
